<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // 1. 获取用户输入的用户名
    let username = prompt("请输入您的用户名");
    // 2. 打印输出
    document.write("欢迎您，" + username);
  </script>
</body>
</html>